package com.oujia.cloud.cloudcommon.dto;

import com.oujia.cloud.cloudcommon.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

@ApiModel(value = "SearchAddDTO", description = "添加文件索引记录")
@Data
public class SearchAddDTO extends SearchDTO {
    @ApiModelProperty(value = "文件索引（绘本books ,英语 english ,听听 story）", required = true)
    @NotBlank(message = "文件索引不能为空", groups = {AddGroup.class})
    private String index;

    @ApiModelProperty(value = "分数")
    private Double score = 0.0;

}
